#include <QCoreApplication>
#include <QStringList>
#include <QDebug>
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    //创建QStringList对象--》存放多个字符串
    QStringList mylist;
    mylist.append("C:/Users/Administrator/Desktop/share/image/1.jpg");
    mylist.append("C:/Users/Administrator/Desktop/share/image/2.png");
    mylist.append("C:/Users/Administrator/Desktop/share/image/3.jpeg");
    mylist.append("C:/Users/Administrator/Desktop/share/image/4.jpg");
    mylist.append("C:/Users/Administrator/Desktop/share/image/6.jpeg");
    //基于范围的for
    for(auto x:mylist)
        qDebug()<<x;
    foreach(auto x,mylist)
        qDebug()<<x;

    return a.exec();
}
